package com.lyh.mall.ware.feign;

import com.lyh.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("mall-product")
public interface ProductFeignService {

    /**
     * /api/product/skuinfo/info/{skuId}
     * 1)、让所有请求过网关
     *      @FeignClient("mall-gateway")
     * /product/skuinfo/info/{skuId}
     * 2）、直接指定后服务器处理
     *      @FeignClient("mall-product")
     *
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

}
